public class University {
    double math;
    double chinese;
    double english;
    double sport;
    double zf;
void enter() {
     zf=  math + chinese + english;
    if (math + chinese + english >= 180&&sport>=60) {
        System.out.println("恭喜！3门课总分为:"+zf+"，且体育达标，达到大学录取线");
    }
    else {
        System.out.println("您落榜了！");
    }
}
}
